package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "员工信息")
@TableName("employee")
public class Employee {
    @TableId(value = "employee_id",type = IdType.AUTO)
    @ApiModelProperty(value = "员工ID")
    private Integer employeeId;
    @ApiModelProperty(value = "员工姓名",required = true)
    private String employeeName;
    @ApiModelProperty(value = "员工密码")
    private String employeePassword;
    @ApiModelProperty(value = "商家ID",required = true)
    private Integer businessId;
    @ApiModelProperty(value = "员工性别",required = true)
    private String employeeGender;
    @ApiModelProperty(value = "员工手机号码",required = true)
    private String employeePhone;
    @ApiModelProperty(value = "员工状态",required = true)
    private Integer employeeStatus;
    @TableField(exist = false)
    private String role;
}
